const imgs = document.querySelectorAll(".item img");
const pointer = document.querySelector(".pointer");
imgs.forEach((img) => {
  img.addEventListener("mouseenter", (e) => {
    // console.log(e.target);

    pointer.style.setProperty("--x", e.target.offsetLeft + "px");
    pointer.style.setProperty("--y", e.target.offsetTop + "px");
    pointer.style.setProperty("--s", e.target.offsetWidth + "px");
  });
});
